<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">

    <title>Dashboard Template for Bootstrap</title>

    <link href="/node_modules/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="/public/css/main.css" rel="stylesheet">
</head>

<body>
    <div style="padding:0 200px 100px;">
        <div>
            <h3 style="display: inline-block;  margin-bottom: 20px;">添加学生</h3>
            <!-- action 就是表单提交的地址，说白了就是请求的 url 地址 -->
            <!-- method 请求方法 get post -->
            <form action="/students/new" method="post">
                <div class="form-group">
                    <label for="exampleInputEmail1">姓名</label>
                    <input type="text" class="form-control" id="" name="name" placeholder="请输入姓名">
                </div>
                <div class="form-group">
                    <label for="exampleInputEmail1">性别</label>
                    <div>
                        <label class="radio-inline">
                            <input type="radio" name="gender" id="" value="0"> 男
                        </label>
                        <label class="radio-inline">
                            <input type="radio" name="gender" id="" value="1"> 女
                        </label>
                    </div>
                </div>
                <div class="form-group">
                    <label for="">年龄</label>
                    <input type="number" class="form-control" id="" name="age" placeholder="请输入年龄">
                </div>
                <div class="form-group">
                    <label for="">爱好</label>
                    <input type="text" class="form-control" id="" name="hobbies" placeholder="请输入爱好">
                </div>
                <button type="submit">提交</button>
            </form>
        </div>
    </div>
    </div>
</body>

</html>